home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d12
/
jazlib.arc
/
JZSCREEN.DMO
< prev
next >
Wrap
Text File
|
1988-12-18
|
706b
|
37 lines
#include <jaz.h>
#include <jzscreen.h>
main(argc,argv)
int argc;
char **argv;
{
int w;
char wstr[256];
char wline[9];
if (argc < 2) exit(0); /* exit cuz no arguments */
*argv++; /* look past invoking pgm name */
strncpy(wstr,*argv++,255); /* get first argument into wstr */
cls(LIGHTGRAY);
while (*argv[0]) { /* parse out the line */
strcat(wstr," ");
strcat(wstr,*argv++);
}
jzgetpce(wstr,wline,',',1); /* get first comma piece */
w = 0;
while (*wline) {
jzbigstr(wline,w * 8 + 1,CNTCOL(wline,10)*8+1,'░',RED);
jzbigstr(wline,w * 8,CNTCOL(wline,10)*8,'█',CYAN);
jzgetpce(wstr,wline,',',w + 2);
w ++;
}
}